﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" CodeFile="Page_UpdateNews.aspx.cs" Inherits="Page_UpdateNews" %>
<%@ Register assembly="CKEditor.NET" namespace="CKEditor.NET" tagprefix="CKEditor" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div style="text-align: center; margin: 10px">
        
        <table  align="center" style="width: 600px" cellpadding="3" cellspacing="3">
            <tr>
                <td align="center" style="width: 734px" valign="bottom">
                    <asp:Label ID="lblLoi" runat="server" ForeColor="Red"></asp:Label>
                </td>
                
            </tr>
            <tr id="trMa" runat="server" visible="false">
                <td align="left" style="width: 734px" valign="bottom">
                    Mã:
                    <asp:Label ID="lblMa" runat="server" ForeColor="#009900"></asp:Label>
                </td>
                
            </tr>
            <tr>
                <td align="left" style="width: 734px" valign="bottom">
                    Tiêu đề:</td>
                
            </tr>
            <tr>
                <td align="left" style="width: 734px">
                    <asp:TextBox ID="txtTieuDe" runat="server" Width="443px"></asp:TextBox>
                </td>
              
            </tr>
            <tr>
                <td align="left" style="width: 734px">
                    Mô tả: </td>
                
            </tr>
            <tr>
                <td align="left" style="width: 734px">
                    <asp:TextBox ID="txtMoTa" runat="server" Height="80px" TextMode="MultiLine" 
                        Width="621px"></asp:TextBox>
                </td>
                
            </tr>
            <tr>
                <td align="left" style="width: 734px" valign="bottom">
                    Nội dung: </td>
                
            </tr>
            <tr>
                <td align="left" style="width: 734px">
                    <ckeditor:ckeditorcontrol ID="txtNoiDung" runat="server" Height="315px" ToolbarFull="Undo|Redo|-|Find|Replace|-|SelectAll|RemoveFormat
Form|Checkbox|Radio|TextField|Textarea|Select|Button|ImageButton|HiddenField
/
Bold|Italic|Underline|Strike|-|Subscript|Superscript
NumberedList|BulletedList|-|Outdent|Indent|Blockquote|CreateDiv
JustifyLeft|JustifyCenter|JustifyRight|JustifyBlock
BidiLtr|BidiRtl
Link|Unlink|Anchor
Table|HorizontalRule|Smiley|SpecialChar|PageBreak
Styles|Format|Font|FontSize
TextColor|BGColor" Width="620px" ImageRemoveLinkByEmptyURL="False">
                    </ckeditor:ckeditorcontrol>
                </td>
                
            </tr>
            <tr>
                <td align="left" style="width: 734px">
                    <table style="width: 100%">
                        <tr>
                            <td align="left" style="width: 62px">
                    Thể loại: 
                            </td>
                            <td>
                    <asp:DropDownList ID="ddlTheLoai" runat="server" Width="260px" 
                                    DataSourceID="SqlDataSource1" DataTextField="Ten" DataValueField="Ma">
                    </asp:DropDownList>
                                <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                                    ConnectionString="<%$ ConnectionStrings:TramHuongDB2ConnectionString %>" 
                                    SelectCommand="SELECT * FROM [LoaiTinTuc]"></asp:SqlDataSource>
                            </td>
                            
                        </tr>
                        <tr>
                            <td align="left" style="width: 62px">
                                Hình ảnh:</td>
                            <td>
                    <asp:FileUpload ID="fulHinhAnh" runat="server" Width="374px" />
                            </td>
                        </tr>
                        <tr>
                            <td align="left" style="width: 62px">
                                &nbsp;</td>
                            <td>
                    <asp:Image ID="imgHinhAnh" runat="server" Visible="False" Height="100px" Width="100px" />
                            </td>
                        </tr>
                    </table>
                </td>
               
            </tr>
            <tr>
                <td align="center" style="width: 734px">
                    <asp:Button ID="btnUpdate" runat="server" Text="Đăng" Width="98px" 
                        onclick="btnUpdate_Click" />
                &nbsp;<asp:Button ID="btnDelete" runat="server" onclick="btnDelete_Click" 
                        Text="Xóa" Visible="False" />
                </td>
               
            </tr>
            </table>
        
    </div>
</asp:Content>

